<div class="row">
    <div class="span8">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>Reference</th>
                    <th>Libelle</th>
                    <th>Prix Unitaire</th>
                    <th>Commander</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($articles as $article) { ?>                    
                    <tr>
                        <td><?php echo $article->ARTICLE_REF; ?></td>
                        <td><?php echo $article->ARTICLE_LIBELLE; ?></td>
                        <td><?php echo $article->PRIX_UNITAIRE; ?> &euro;</td>
                        <td style="vertical-align: middle;">
                            <input type="number" min="0" value="0" style="width: 50px;" class="input-small" data-idArticle="<?php echo $article->ARTICLE_ID; ?>"/>
                            <a class="btn addToCart" data-idArticle="<?php echo $article->ARTICLE_ID; ?>" href="<?php echo site_url() . 'fournisseur/addToCart'; ?>">Ajouter</a>
                        </td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
    <div class="span4">
        <?php echo form_open('path/to/controller/update/function'); ?>

        <table cellpadding="6" cellspacing="1" style="width:100%" border="0">

            <tr>
                <th>QTY</th>
                <th>Item Description</th>
                <th style="text-align:right">Item Price</th>
                <th style="text-align:right">Sub-Total</th>
            </tr>

            <?php $i = 1; ?>

            <?php foreach ($this->cart->contents() as $items): ?>

                <?php echo form_hidden($i . '[rowid]', $items['rowid']); ?>

                <tr>
                    <td><input type="text" class="updateCart" name="<?php echo $i . '[qty]'; ?>" value="<?php echo $items['qty']; ?>" style="width: 50px;" data-rowId="<?php echo $items['rowid']; ?>"/></td>
                    <td>
                        <?php echo $items['name']; ?>

                        <?php if ($this->cart->has_options($items['rowid']) == TRUE): ?>

                            <p>
                                <?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?>

                                    <strong><?php echo $option_name; ?>:</strong> <?php echo $option_value; ?><br />

                                <?php endforeach; ?>
                            </p>

                        <?php endif; ?>

                    </td>
                    <td style="text-align:right"><?php echo $this->cart->format_number($items['price']); ?></td>
                    <td style="text-align:right"><?php echo $this->cart->format_number($items['subtotal']); ?> €</td>
                </tr>

                <?php $i++; ?>

            <?php endforeach; ?>

            <tr>
                <td colspan="2"> </td>
                <td class="right"><strong>Total</strong></td>
                <td class="right"><?php echo $this->cart->format_number($this->cart->total()); ?> €</td>
            </tr>

        </table>

        <p><a href="<?php echo site_url() . 'fournisseur/validerCommande/'.$this->uri->segment(3); ?>" class="btn validerCart">Valider le bon</a></p>
    </div>
</div>